home *** CD-ROM | disk | FTP | other *** search
- global gWBAMWL
- set the itemdelimiter to "■"
- if u="" then
- if there is a window w then
- put "false" into b
- repeat with x=1 to number of lines in gWBAMWL
- get line x of gWBAMWL
- if item 1 of it=w then
- put "true" into b
- exit repeat
- end if
- end repeat
- if b="false" then
- set the itemdelimiter to ","
- put w&"■"&m&"■"&(the rect of window w)&return after gWBAMWL
- end if
- end if
- else if u="false" then
- repeat with x=1 to number of lines in gWBAMWL
- get line x of gWBAMWL
- if item 1 of it=w then
- delete line x of gWBAMWL
- exit repeat
- end if
- end repeat
- end if
- set the itemdelimiter to ","